﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StudentLib
{
    public class TransferStudent : Student
    {
        private string previousCollegeName = "";

        public string PreviousCollegeName
        {
            get { return previousCollegeName; }
            set 
            { 
                previousCollegeName = value;
            }
        }

        public TransferStudent(bool isForWeb) : base(isForWeb)
        {
            
        }

        public TransferStudent(string previousCollegeName, bool isForWeb)
            : base(isForWeb)
            //overloaded constructor
        {
            this.previousCollegeName = previousCollegeName; 
        }

        public override string MailingLabel()
        {
            string label = base.MailingLabel();
            label += GetLineBreak() + previousCollegeName;
            label += GetLineBreak() + "ID:" + GetSpace() + Id;
            return label;
        }
    }
}
